Skip to content

fix: reset page.redirect_url before browsing to prevent false errors …#441

Merged
adam-miller merged 4 commits intomasterfrom
adam/reset_page_redirect_url_before_browse
Jan 21, 2026
Merged

fix: reset page.redirect_url before browsing to prevent false errors …#441
adam-miller merged 4 commits intomasterfrom
adam/reset_page_redirect_url_before_browse

Conversation

@adam-miller
Copy link
Copy Markdown
Contributor

…in retry loops

@mistydemeo
Copy link
Copy Markdown
Contributor

Something a little weird happened in the tests; may need to rerun them.

Copy link
Copy Markdown

@alindeman alindeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall. I left one thought, but consider it optional and non-blocking.

Comment thread brozzler/worker.py Outdated
window_width=self._window_width,
headless=self._headless,
)
page.redirect_url = None
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this makes sense as a method on Page, like note_redirect is (clear_redirect or similar?). Alternatively, maybe note_redirect could be removed and the one call site below changed to page.redirect_url = ... if we're comfortable manipulating redirect_url directly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it to clear_redirect(). That helps make it a little more clear why the value is being reset.

@adam-miller adam-miller merged commit 19a1e69 into master Jan 21, 2026
5 checks passed
adam-miller added a commit that referenced this pull request Jan 21, 2026
#441)

* fix: reset page.redirect_url before browsing to prevent false errors in retry loops

* chore: formatting unit test

* chore: more formatting

* chore: refactor reset of page.redirect_url
@mistydemeo mistydemeo mentioned this pull request Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants